package com.iscas.tech.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.geekidea.springbootplus.framework.common.entity.BaseEntity;
import io.geekidea.springbootplus.framework.validator.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 科技需求表
 *
 * @author yangyi
 * @since 2020-10-26
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AtScideman对象")
public class AtScideman extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @NotNull(message = "id不能为空", groups = {Update.class})
    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @NotBlank(message = "需求名称不能为空")
    @ApiModelProperty("需求名称")
    private String sdTitle;

    @NotBlank(message = "需求主体（单位或者个人）不能为空")
    @ApiModelProperty("需求主体（单位或者个人）")
    private String sdSubject;

    @ApiModelProperty("需求简介")
    private String sdDetail;

    @ApiModelProperty("投资预算")
    private String sdInvest;

    @NotBlank(message = "联系人不能为空")
    @ApiModelProperty("联系人")
    private String ctPeople;

    @NotBlank(message = "联系电话不能为空")
    @ApiModelProperty("联系电话")
    private String ctTel;

    @ApiModelProperty("联系邮箱")
    private String ctEmail;

    @ApiModelProperty("所在区域")
    private String sdArea;

    @NotNull(message = "发布人id（对应表3的人员id）不能为空")
    @ApiModelProperty("发布人id（对应表3的人员id）")
    private Integer sdResid;

    @NotNull(message = "sd_restime不能为空")
    @ApiModelProperty("sd_restime")
    private Date sdRestime;

    @NotBlank(message = "是否审核（0:未审核(默认) 1:已审核）不能为空")
    @ApiModelProperty("是否审核（0:未审核(默认) 1:已审核）")
    private String adStatus;

    @ApiModelProperty("删除状态（1存在，0刪除）")
    private Integer delstatus;

    @ApiModelProperty("创建人")
    private Integer createtitle;

    @ApiModelProperty("提交交易创建时间")
    private Date createtime;

}
